package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;

import java.util.List;

// 收货地址
public interface AddressService {

    //收货地址查询
    List<Address> findList();

    //新增收货地址
    void add(Address address);

    //设置默认收货地址
    void setDefault(Long id);

    //查看默认收货地址
    Address findDefault();

    //修改收货地址回显
    Address findById(Long id);


    //修改收货地址
    void updateAddress(Address address);

    //删除地址
    void delete(Long ids);
}
